package org.example.mallweb.mallservice.mybatiscommon.favorite;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.mallcommon.projo.Collect;
import org.example.mallcommon.vo.ArticleUserVo;

import java.util.List;
import java.util.Set;

@Mapper
/**
 * @author 韩先楚
 * 收藏Mapper接口
 */

public interface CollectMapper extends BaseMapper<Collect> {


    //获取用户收藏的博客
    List<ArticleUserVo> getCollectBlog(@Param("userId") Integer userId, @Param("list") Set<Long> articleIdList);

}
